home *** CD-ROM | disk | FTP | other *** search
/ MacWarehouse Macintosh Games / MacWarehouse Macintosh Games.iso / AMBER demo / ROXY / ROXY.dxr / 01004_TXT-tonal ready.ls < prev    next >
Encoding:
Text File  |  1996-10-18  |  701 b   |  25 lines

  1. on mouseDown
  2.   global oStoryteller
  3.   set camSprite to 44
  4.   set whichKnob to getState(oStoryteller, #DoorWithScanUnit)
  5.   set PKscan to #none
  6.   if whichKnob = #kitchenOutside then
  7.     set PKscan to #PkPatioScan
  8.   end if
  9.   if whichKnob = #bathroomInside then
  10.     set PKscan to #PkBathroomScan
  11.   end if
  12.   if whichKnob = #margaretRmOutside then
  13.     set PKscan to #Pk40sScan
  14.   end if
  15.   if whichKnob = #boatHouseOutside then
  16.     set PKscan to #PkBoathouseScan
  17.   end if
  18.   if PKscan = #none then
  19.     put ">‚Ä¢‚Ä¢‚Ä¢> mouseDown( cast 'TXT-tonal ready' ):  I don't have a scan listed for this knob.."
  20.   else
  21.     trimState(#tonalResidueRemaining, PKscan)
  22.   end if
  23.   set the movieRate of sprite camSprite to 1
  24. end
  25.